package com.zbkj.crmeb.store.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 采购商品表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_purchase_goods")
@ApiModel(value="PurchaseGoods", description="采购商品表")
public class PurchaseGoods implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "采购商品ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "支付订单ID(是order_id)")
    private String storeOrderId;
    
    @ApiModelProperty(value = "支付订单详情id")
    private Integer storeOrderInfoId;

    @ApiModelProperty(value = "渠道订单编号")
    private String channelOrderSn;
    
    @ApiModelProperty(value = "渠道类型")
    private Integer channelType;
    
    @ApiModelProperty(value = "推送订单编号")
    private String pushStoreOrderId;
    
    @ApiModelProperty(value = "sku_id")
    private String skuId;
    
    @ApiModelProperty(value = "运税费")
    private BigDecimal shippingFee;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "商品数量")
    private String goodsNumber;

    @ApiModelProperty(value = "颜色,尺码")
    private String goodsAttr;
    
    @ApiModelProperty(value = "商品图片")
    private String goodsImg;
    
    @ApiModelProperty(value = "商品名字")
    private String goodsName;

    @ApiModelProperty(value = "商品分类id")
    private Integer goodsCateId;
    
    @ApiModelProperty(value = "商品品牌")
    private String goodsBrand;
    
    @ApiModelProperty(value = "商品供应商")
    private String goodsSupplier;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "商品国际编码")
    private String goodKeyword;

    @ApiModelProperty(value = "商品发货地")
    private Integer goodsTempId;
    
    @ApiModelProperty(value = "商品原价(欧元)")
    private BigDecimal goodsOtPrice;
    
    @ApiModelProperty(value = "推送状态: 1成功 其他全失败")
    private String pushStatus;
    
    @ApiModelProperty(value = "推送消息")
    private String pushMsg;
    
    @ApiModelProperty(value = "操作人")
    private String userName;
    
    @ApiModelProperty(value = "操作人所在ip")
    private String ip;
    
    @ApiModelProperty(value = "0: 系统自动推送 1: 手动推送 2: 吉客云指定推送 9:备份，无法操作")
    private Integer pushType;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "订单状态(-3:补偿性退款 -2:退货退款 -1:退款申请中 0:待支付 1:待发货 2:待收货 3:待评价 4:已完成 5:已取消 6:待确认)")
    private Integer status;

    @ApiModelProperty(value = "0 未退款 1 申请中 2 退货退款 3补偿性退款")
    private Integer refundStatus;

    @ApiModelProperty(value = "结算状态（0未结算   1已结算）")
    private Integer settlementStatus;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundPrice;

    @ApiModelProperty(value = "取消原因")
    private String cancelReason;

    @ApiModelProperty(value = "供应商商品类型(1API接口  2表格导入  3商户自建转云仓)")
    private Integer commodityType;

}
